package it.tukano.treditor.engine.scene;

import it.tukano.check.Checks;
import it.tukano.treditor.engine.geom.EulerSet;
import it.tukano.treditor.engine.geom.NTuple3;
import java.io.Serializable;

public class SceneView implements Serializable {
    
    /* default serial version uid*/
    private static final long serialVersionUID = 0;
    private NTuple3 location = new NTuple3(0,0,0);
    private EulerSet orientation = new EulerSet(0,0,0, false);
    private String name;

    /**
     * Instance initializer
     */
    public SceneView() {
        synchronized (this) {
            name = "Unnamed";
        }
    }
    
    public synchronized String getName() {
        return name;
    }
    
    public synchronized void setName(String name) {
        Checks.NotNull(name);
        this.name = name;
    }

    public synchronized NTuple3 getLocation() {
        return location;
    }

    public synchronized void setLocation(NTuple3 location) {
        this.location = location;
    }

    public synchronized EulerSet getOrientation() {
        return orientation;
    }

    public synchronized void setOrientation(EulerSet orientation) {
        this.orientation = orientation;
    }
}
